﻿using Microsoft.Extensions.DependencyInjection;
using StackExchange.Redis.Extensions.Core.Configuration;
using StackExchange.Redis.Extensions.Newtonsoft;
using System;

namespace Solution.Application.Injection
{
    public static class RedisInjection
    {
        public static void AddRedisMultiplexer(this IServiceCollection services, RedisConfiguration redisConfiguration)
        {
            services.AddStackExchangeRedisExtensions<NewtonsoftSerializer>(redisConfiguration);
        }
    }
}